home *** CD-ROM | disk | FTP | other *** search
- Path: merle.acns.nwu.edu!judd
- From: judd@merle.acns.nwu.edu (Stephen Judd)
- Newsgroups: comp.sys.cbm
- Subject: Re: programming question:block-X commands
- Date: 16 Apr 1996 14:58:27 GMT
- Organization: Northwestern University, Evanston IL
- Message-ID: <4l0cij$vi@news.acns.nwu.edu>
- References: <2850597222@199.181.141.3> <829636603@p71.f411.n201.z2.ftn>
- Reply-To: sjudd@nwu.edu (Stephen Judd)
- NNTP-Posting-Host: merle.acns.nwu.edu
-
- In article <829636603@p71.f411.n201.z2.ftn>,
- Pontus Berg <Pontus.Berg@p71.anet.canit.se> wrote:
- >
- >It's probably a kewl one, but try this instead (if you want to run it with
- >decimal, it needs to be BCD)... (Hope I got it right from the top of my head)
- >
- >hexprt pha
- > asl
- > asl
- > asl
- > asl
-
- Better make those lsr
-
- > jsr hexout
- > pla
- >hexout and #$0f
-
- And hexout can be moved here, to the tax -- gotta save those cycles! :).
-
- > tax
- > lda hextab,x
- > jmp $ffd2
-
- And of course you might want an rts here :)
-
- >
- >hextab .text "0123456789abcdef"
-
- If you want screen codes, you might use
-
- HEXOUT
- CLC
- ADC #48
- CMP #58
- BCC :L1
- SBC #57
- :L1 STA wherever, say (zp),y plus an INY
- RTS
-
-
- evetS-
-
- >) o/ Bacchus@FairLight.COM Fido: 2:201/411.71 (
-